package com.bxw.forum.service;


import com.bxw.forum.dao.UserMapper;
import com.bxw.forum.model.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;

public interface IUserService {

    void createNormalUser(User user);

    User selectByUserName(String username);

    User login(String username,String password);

    void addOneArticleCountById(Long id);

    User selectById(Long id);

    void subOneArticleCountById(Long id);

    void modifyInfo(User user);

    void modifyPassword(Long id,String newPassword,String oldPassword);
}
